25. Video: DATE Functions
DATE Functions I
GROUPing BY a date column is not usually very useful in SQL, as these columns tend to have transaction data down to a second. Keeping date information at such a granular data is both a blessing and a curse, as it gives really precise information (a blessing), but it makes grouping information together directly difficult (a curse).
Lucky for us, there are a number of built in SQL functions that are aimed at helping us improve our experience in working with dates.
Here we saw that dates are stored in year, month, day, hour, minute, second, which helps us in truncating. In the next concept, you will see a number of functions we can use in SQL to take advantage of this functionality.
In this link you can find the formatting of dates around the world, as referenced in the video.